package com.day14test;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test2_OutputStream {
	public static void main(String[] args) throws IOException {
		
		BOS();
		FOS();
	}
	
	public static void BOS() throws IOException {
		
		OutputStream out = new BufferedOutputStream(new FileOutputStream("D:\\iotest"));
		
		out.write(55);
		out.write(66);
		
		out.close();
	}
	
	public static void FOS() throws IOException {
		
		OutputStream out2 = new FileOutputStream("D:\\iotest");
		
		out2.write(77);
		out2.write(88);
		
		out2.close();
	}
	
}
